import request from '@/utils/request'

export function listAllCompany(parameter) {
  return request({
    url: '/pc/aibaoCompany/listAllByState',
    method: 'get',
    params: parameter
  })
}

export function add(parameter) {
  return request({
    url: '/pc/aibaoCompany/add',
    method: 'post',
    data: parameter
  })
}
export function listByPage(parameter) {
  return request({
    url: '/pc/aibaoCompany/listByPage',
    method: 'post',
    data: parameter
  })
}

export function update(parameter) {
  return request({
    url: '/pc/aibaoCompany/update',
    method: 'put',
    data: parameter
  })
}

export function active(data) {
  return request({
    url: '/pc/aibaoCompany/active',
    method: 'post',
    data
  })
}

export function frozen(data) {
  return request({
    url: '/pc/aibaoCompany/frozen',
    method: 'post',
    data
  })
}

export function listCompanyForSelect(data) {
  return request({
    url: '/h5/anno/common/listCompanyForSelect',
    method: 'get',
    params: data
  })
}